package com.ruoyi.comment.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.comment.mapper.ResInformationCommentMapper;
import com.ruoyi.comment.domain.ResInformationComment;
import com.ruoyi.comment.service.IResInformationCommentService;

/**
 * 资讯评论Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-12-20
 */
@Service
public class ResInformationCommentServiceImpl implements IResInformationCommentService 
{
    @Autowired
    private ResInformationCommentMapper resInformationCommentMapper;

    /**
     * 查询资讯评论
     * 
     * @param id 资讯评论主键
     * @return 资讯评论
     */
    @Override
    public ResInformationComment selectResInformationCommentById(Long id)
    {
        return resInformationCommentMapper.selectResInformationCommentById(id);
    }

    /**
     * 用户查询资讯评论列表
     * 
     * @param resInformationComment 资讯评论
     * @return 资讯评论
     */
    @Override
    public List<ResInformationComment> selectResInformationCommentTreeList(ResInformationComment resInformationComment)
    {
        return resInformationCommentMapper.selectResInformationCommentTreeList(resInformationComment);
    }

    /**
     * 查询资讯评论列表
     *
     * @param resInformationComment 资讯评论
     * @return 资讯评论
     */
    @Override
    public List<ResInformationComment> selectResInformationCommentList(ResInformationComment resInformationComment)
    {
        return resInformationCommentMapper.selectResInformationCommentList(resInformationComment);
    }

    /**
     * 新增资讯评论
     * 
     * @param resInformationComment 资讯评论
     * @return 结果
     */
    @Override
    public int insertResInformationComment(ResInformationComment resInformationComment)
    {
        return resInformationCommentMapper.insertResInformationComment(resInformationComment);
    }

    /**
     * 修改资讯评论
     * 
     * @param resInformationComment 资讯评论
     * @return 结果
     */
    @Override
    public int updateResInformationComment(ResInformationComment resInformationComment)
    {
        return resInformationCommentMapper.updateResInformationComment(resInformationComment);
    }

    /**
     * 批量删除资讯评论
     * 
     * @param ids 需要删除的资讯评论主键
     * @return 结果
     */
    @Override
    public int deleteResInformationCommentByIds(Long[] ids)
    {
        return resInformationCommentMapper.deleteResInformationCommentByIds(ids);
    }

    /**
     * 删除资讯评论信息
     * 
     * @param id 资讯评论主键
     * @return 结果
     */
    @Override
    public int deleteResInformationCommentById(Long id)
    {
        return resInformationCommentMapper.deleteResInformationCommentById(id);
    }
}
